package cn.wolfcode.dao.impl;

import cn.wolfcode.dao.CartDao;
import cn.wolfcode.domain.Cart;
import cn.wolfcode.util.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class CartDaoImpl implements CartDao {
    @Override
    public List<Cart> selectAll() {
        SqlSession session = MyBatisUtil.openSession();
        List<Cart> carts = session.selectList("cn.wolfcode.mapper.CartMapper.selectAll");

        return carts;
    }
}
